import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:myflutterproject/basematerialwidgetsdemo.dart';
import 'package:myflutterproject/routes.dart';
import 'package:myflutterproject/utils/overScrollBehavior.dart';

class Animations extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('动画&Motion Widget'),
        centerTitle: true,
      ),
      body: ScrollConfiguration(
        behavior: OverScrollBehavior(),
        child: ListView(
          children: <Widget>[
            ItemButton('AnimatedContainer(在一段时间内逐渐改变其值的容器。)', animatedcontainer),
            ItemButton('AnimatedCrossFade(两个组件切换时出现交叉渐入的效果)', animatedcrossfade),
            ItemButton('Hero(飞行动画 点击图片进入详情，详情页面也有该图片)', herodemo),
            ItemButton('AnimatedBuilder(用于构建动画的通用小部件。)', animatedbuilder),
          ],
        ),
      ),
    );
  }

}